package com.fuxian.service.impl;

import java.util.List;

import javax.annotation.Resource;
import org.springframework.stereotype.Repository;

import com.fuxian.dao.UserLessonDao;
import com.fuxian.model.Userlessons;
import com.fuxian.service.UserLessonService;

@Repository
public class UserLessonServiceImpl implements UserLessonService {

	@Resource
	private UserLessonDao userLessonDao;

	public void addUserLesson(Userlessons userlessons) {
		userLessonDao.addUserLesson(userlessons);
	}

	public void deleteUserLessonById(int user_id, int lessonId) {
		userLessonDao.deleteUserLessonById(user_id, lessonId);
	}

	public void modifyUserLesson(Userlessons userlessons) {
		userLessonDao.modifyUserLesson(userlessons);
	}

	public List<Userlessons> selectAllUserLessons(int start, int size) {
		return userLessonDao.selectAllUserlesson(start, size);
	}

}
